﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK;

namespace AirHockey
{
    public class Camera
    {
        #region Members
        private Vector3 position;
        #endregion

        #region Properties
        public Matrix4 ViewMatrix
        {
            get { return Matrix4.LookAt(position, Vector3.Zero, Vector3.UnitY); }
        }

        public Vector3 Position
        {
            get { return position; }
            set { position = value; }
        }
        #endregion

        #region Constructor
        public Camera()
        {
            position = Vector3.Zero;
        }

        public Camera(Vector3 position)
        {
            this.position = position;
        }
        #endregion

        #region Public Methods
        public void ChangeCameraPosition(Vector3 position)
        {
            this.position = position;
        }
        #endregion
    }
}
